<div style="background: #FFFFFF; padding: 5px;">
			<form name="userIndexForm" id="userIndexForm" action="adminb-account-doclub" method="post" onsubmit="return check_club();">
				<table width="60%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CEE7FF" style="border-collapse:collapse; margin: 0 auto;">
					<tr>
						<td width="50%" align="center">
							<?php if ($this->hasClub):?>
								<?php echo $this->team['en_flname'];?>
							<?php else:?>
								<select name="clubid">
									<option value="0">Please Select</option>
									<?php foreach ($this->clubList as $v):?>
										<option value="<?php echo $v['flid'];?>"><?php echo $v['en_flname'];?></option>
									<?php endforeach;?>
								</select>
							<?php endif;?>
							<input type="hidden" name="has_club" value="<?php echo $this->hasClub;?>"></input>
						</td>
						<td width="50%" align="center">
							<input type="submit" value="<?php if ($this->hasClub){echo 'exit';} else {echo 'Join it';}?>"></input>
						</td>									
					</tr>		
				</table>				
			</form>
</div>
<script type="text/javascript">
	function check_club()
	{
		<?php if (!$this->hasClub):?>
		if ($('select[name="clubid"]').val() <= 0) {
			alert('Please select a club!');
			return false;
		}
		return true;
		<?php else:?>
			return confirm('Are you sure exit?');
		<?php endif;?>
	}
</script>